package com.mng.beanTest1;

public class User {
    public String name;

    public User(){}
    public User(String name){
        this.name = name;
    }

    public void add() {
        System.out.println("addd-----");
    }

    @Override
    public String toString() {
        return "User{" +
            "name='" + name + '\'' +
            '}';
    }

    public void setName(String name) {
        this.name = name;
    }
}
